package com.jmhan.cloud.mycatapp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication( scanBasePackages = {"com.jmhan","com.mhgis.dog" })  //服务类等必须加上以上注解进行扫描，否则无法找到。
@EnableSwagger2
@EntityScan(basePackages={"com.mhgis.dog"})    //实体类必须加上该注解进行扫描
public class JpaMycatApplication {

	public static void main(String[] args) {
		SpringApplication.run(JpaMycatApplication.class, args);
	}
}
